#include "diskio.h"
#include "mmc.h"

DSTATUS disk_initialize(BYTE pdrv)
{
	return MMC_disk_initialize(0);
}

DSTATUS disk_status (BYTE pdrv)
{
	return MMC_disk_status(0);
}

DRESULT disk_read (BYTE pdrv, BYTE *buff, DWORD sector,	BYTE count)
{
	return MMC_disk_read(0, buff, sector, count);
}

DRESULT disk_write (BYTE pdrv, const BYTE * buff, DWORD sector,	BYTE count)
{
    return MMC_disk_write(0, buff, sector, count);
}

DRESULT disk_ioctl (BYTE pdrv, BYTE cmd, void *buff)
{
    return MMC_disk_ioctl(0, cmd, buff);
}
